package com.neu.his.entity;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@TableName("med_doctor")
@Data
public class MedDoctor extends Base {
    private Long medicalDoctorId;
    private int schedulLimit;
    private int degree ;

    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private List<MedDoctorDuty> medDoctorDutyList;

    public MedDoctor(Long medicalDoctorId,int schedulLimit,int degree){
        this.medicalDoctorId=medicalDoctorId;
        this.schedulLimit=schedulLimit;
        this.degree=degree;
    }

    @Override
    public String toString(){
        return JSON.toJSONString(this);
    }
}
